package com.woniuxy.cloud.carl.marketing.service;

import com.woniuxy.cloud.carl.marketing.client.param.AddUserCouponParam;
import com.woniuxy.cloud.carl.marketing.client.result.CouponDto;
import com.woniuxy.cloud.carl.marketing.infra.model.Coupon;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.cloud.carl.marketing.infra.model.Deduction;
import com.woniuxy.cloud.carl.marketing.infra.model.FullDiscountCoupon;
import com.woniuxy.cloud.carl.marketing.infra.model.ServiceCoupon;
import com.woniuxy.result.Result;

import java.util.List;

/**
 * <p>
 * 优惠券记录表 服务类
 * </p>
 *
 * @author Lucas
 * @since 2023-07-19
 */
public interface CouponService extends IService<Coupon> {
    Result<List<CouponDto>> getCouponByUserId(Long userId);
    Result addUserCoupon(AddUserCouponParam param);
    void modifyCouponState();
    Result<Coupon> useCoupon(Long userId,Long couponId);

    Result<List<FullDiscountCoupon>> getMyDiscount(Long userId);

    Result<List<Deduction>> getMyCouponBySpuId(Long spuId, Long userId);

    Result<List<ServiceCoupon>> getMyServiceCoupon(Long serviceId, Long userId);

}
